// Copyright (c) 2019 Presto Labs Pte. Ltd.
// Author: xguo

#include "coin2/exchange/base/symbology/product.h"

#include "coin2/exchange/factory/symbology/product.h"
#include <boost/algorithm/string.hpp>

namespace coin2::exchange::base::symbology {

std::string SpotProductReplaceMeLater::ConvertToNativeSymbol(
    const ICurrency& base,
    const ICurrency& quote,
    const std::string& symbol_template) {
    std::string native_symbol = symbol_template;
    boost::replace_all(native_symbol, "{base}", base.native_currency());
    boost::replace_all(native_symbol, "{quote}", quote.native_currency());
    return native_symbol;
}

}  // namespace coin2::exchange::base::symbology
